<?php
$code = Session::get('code');
if($code==0):?> 
<block name="left">
<div class="layui-side-scroll">
  <ul class="layui-nav layui-nav-tree" lay-filter="demo">
  <li class="layui-nav-item layui-nav-itemed">
    <a href="javascript:;">公众号管理</a>
    <dl class="layui-nav-child">
      <dd><a href="/admin/index/index">用户列表</a></dd>
      <dd><a href="/admin/factor/index">因数列表</a></dd>
      <dd><a href="/admin/factor/addfactor">添加顺位值</a></dd>
      <dd><a href="/admin/order/index">订单管理</a></dd>
      <dd><a href="/admin/admin/index">管理员管理</a></dd>
      <dd><a href="/admin/admin/addadmin">添加管理员</a></dd>
    </dl>
  </li>

   <li class="layui-nav-item layui-nav-itemed">
    <a href="javascript:;">公众号设置</a>
    <dl class="layui-nav-child">
      <!-- <dd><a href="/admin/weixin/setinfo">微信基本设置</a></dd> -->
      <dd><a href="/admin/weixin/index">微信设置</a></dd>
      <dd><a href="/admin/weixin/setbutton">微信菜单设置</a></dd>
    </dl>
  </li>
  <!-- <li class="layui-nav-item layui-nav-itemed">
    <a href="javascript:;">服务管理</a>
    <dl class="layui-nav-child">
      <dd><a href="/admin/service/index">服务列表</a></dd>
      <dd><a href="/admin/service/addservice">添加服务</a></dd>
    </dl>
  </li>
  <li class="layui-nav-item"><a href="/admin/order/index">订单管理</a></li>
  <li class="layui-nav-item"><a href="/admin/admin/admin">管理员管理</a></li> -->
</ul>
</div>
</block>
<?php else:?>
<block name="left">
<div class="layui-side-scroll">
  <ul class="layui-nav layui-nav-tree" lay-filter="demo">
 <!--  <li class="layui-nav-item layui-nav-itemed">
    <a href="javascript:;">渠道管理</a>
    <dl class="layui-nav-child">
      <dd><a href="/admin/index/index">渠道列表</a></dd>
      <dd><a href="/admin/index/addshop">添加渠道</a></dd>
    </dl>
  </li> -->
  <li class="layui-nav-item layui-nav-itemed">
    <a href="javascript:;">服务管理</a>
    <dl class="layui-nav-child">
      <dd><a href="/admin/service/index">服务列表</a></dd>
      <dd><a href="/admin/service/addservice">添加服务</a></dd>
    </dl>
  </li>
  <li class="layui-nav-item"><a href="/admin/order/index">订单管理</a></li>
  <!-- <li class="layui-nav-item"><a href="/admin/admin/admin">管理员管理</a></li> -->
</ul>
</div>
</block>
<?php endif;?>
<script type="text/javascript" src="/js/jquery-1.10.1.min.js"></script>
<script>
$(document).ready(function(){ 
  $(".layui-nav-item a").each(function(){ 
    if(this.href==String(window.location)){ 
      $(this).addClass("curee"); 
    }
  });  
}); 
</script>